//
//  LightningImage.swift
//  demo
//
//  Created by raymond on 2022/5/7.
//

import SwiftUI

struct NatureImage: View {
  var image: Image
  var body: some View {
    image.resizable()
      .antialiased(true)
      .frame(width: 80, height: 80, alignment: .center)
      .clipShape(Circle())
      .overlay(Circle().stroke(.white,  lineWidth: 4))
      .shadow(radius: 4)
  }
}

struct NatureImage_Previews: PreviewProvider {
  static var previews: some View {
    NatureImage(image: Image("nature"))
  }
}
